package collection;

import java.util.Arrays;
import java.util.List;

public class ArrayToList {
    public static void main(String[] args) {
        String[] str = {"zxc","asd","qwe","rty"};

        System.out.println("str:"+ Arrays.toString(str));

        List<String> li = Arrays.asList(str);
        System.out.println("li:"+li);

        str[0] = "1234567";
        System.out.println("li;"+li);
        System.out.println("str:"+Arrays.toString(str));




    }
}
